<template>
  <div class="header">
    <div class="iconfont icon-fanhui" @click="back"></div>
    <div class="header-title">{{title}}</div>
    <div class="iconfont icon-diandiandian1"></div>
  </div>
</template>

<script>
export default {
  props: {
    title: String
  },
  methods: {
    back() {
      //返回上一级
      window.history.back();
    }
  }
};
</script>

<style scoped="scoped">
.header {
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 40px;
  line-height: 40px;
  background-color: #ffffff;
  border-bottom: 1px solid #eeeeee;
  box-shadow: 0px 1px 4px #eeeeee;
  display: flex;
  justify-content: space-between;
  box-sizing: border-box;
  padding: 0px 20px;
  z-index: 7;
}
.iconfont {
  background-color: #fff;
}
.header-title {
  background-color: #fff;
}
</style>
